package com.qbb.client.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 类说明
 * 
 * @author chenhuaiao
 * @version V1.0 创建时间：Sep 29, 2014 10:08:50 AM
 */
public class DateUtil {

	private final static DateFormat YYYY_MM_DD_MM_HH_SS = new SimpleDateFormat(
			"yyyy-MM-dd HH:mm:ss");
	private final static DateFormat YYYY = new SimpleDateFormat("yyyy");
	private final static DateFormat MM = new SimpleDateFormat("MM");
	private final static DateFormat DD = new SimpleDateFormat("dd");

	public static String date_yyyy(Date date) {
		return YYYY.format(date);
	}

	public static String date_mm(Date date) {
		return MM.format(date);
	}

	public static String date_dd(Date date) {
		return DD.format(date);
	}

	public static String date_YYYY_MM_DD_MM_HH_SS(Date date) {
		return YYYY_MM_DD_MM_HH_SS.format(date);
	}
}
